package com.feicheng.service.impl;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.entity.SaleOrderHeader;
import com.feicheng.mapper.SaleOrderHeaderMapper;
import com.feicheng.model.SaleOrderHeaderWithUser;
import com.feicheng.service.ISaleOrderHeaderService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 周启博
 * @since 2022-06-27
 */
@Service
public class SaleOrderHeaderServiceImpl extends ServiceImpl<SaleOrderHeaderMapper, SaleOrderHeader>
        implements ISaleOrderHeaderService {

    @Autowired
    public SaleOrderHeaderMapper saleOrderHeaderMapper;

    @Override
    public SaleOrderHeader saleOrderHeader(Integer saleId) {
        return saleOrderHeaderMapper.queryUserInfo(saleId);

    }

    @Override
    public Page<SaleOrderHeaderWithUser> PageConditionSelect(
            Page<SaleOrderHeaderWithUser> saleOrderHeaderPage,
            Wrapper wrapper) {

        return this.getBaseMapper().PageConditionSelect(
                saleOrderHeaderPage,
                wrapper);
    }
}
